﻿using Digitalmes.Domain.Sys;

namespace Digitalmes.Sugar.SeedData;

internal sealed class SysMenuSeedData : ISqlSugarEntitySeedData<SysMenu>
{
    [IgnoreUpdate]
    public IEnumerable<SysMenu> HasData()
    {
        return new[]
        {
            new SysMenu { Id = 1300000000001, TenantId = 0, Name = "主页", ParentId = 0, ParentIdList = new() { 1300000000001 }, Code = "home", Layer = 1, Urls = "/home", Redirect = "", VuePath = "", Icon = "el-icon-house", Active = "", Color = "", Sort = 1, FullPage = false, Types = "menu", Api = new(0), CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },
            new SysMenu { Id = 1300000000002, TenantId = 0, Name = "工作台", ParentId = 1300000000001, ParentIdList = new() { 1300000000001, 1300000000002 }, Code = "dashboard", Layer = 1, Urls = "/dashboard", Redirect = "", VuePath = "home", Icon = "el-icon-menu", Active = "", Color = "", Sort = 2, FullPage = false, Types = "menu", Api = new(0), CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },
            new SysMenu { Id = 1300000000002, TenantId = 0, Name = "个人信息", ParentId = 1300000000001, ParentIdList = new() { 1300000000001, 1300000000002 }, Code = "dashboard", Layer = 1, Urls = "/dashboard", Redirect = "", VuePath = "home", Icon = "el-icon-menu", Active = "", Color = "", Sort = 2, FullPage = false, Types = "menu", Api = new(0), CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },
            new SysMenu { Id = 1300000000002, TenantId = 0, Name = "系统监控", ParentId = 1300000000001, ParentIdList = new() { 1300000000001, 1300000000002 }, Code = "dashboard", Layer = 1, Urls = "/dashboard", Redirect = "", VuePath = "home", Icon = "el-icon-menu", Active = "", Color = "", Sort = 2, FullPage = false, Types = "menu", Api = new(0), CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },
            new SysMenu { Id = 1300000000002, TenantId = 0, Name = "接口文档", ParentId = 1300000000001, ParentIdList = new() { 1300000000001, 1300000000002 }, Code = "dashboard", Layer = 1, Urls = "/dashboard", Redirect = "", VuePath = "home", Icon = "el-icon-menu", Active = "", Color = "", Sort = 2, FullPage = false, Types = "menu", Api = new(0), CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },

            new SysMenu { Id = 1300000000011, TenantId = 0, Name = "租户", ParentId = 0, ParentIdList = new() { 1300000000001 }, Code = "home", Layer = 1, Urls = "/home", Redirect = "", VuePath = "", Icon = "el-icon-house", Active = "", Color = "", Sort = 1, FullPage = false, Types = "menu", Api = new(0), CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },
            new SysMenu { Id = 1300000000012, TenantId = 0, Name = "租户管理", ParentId = 1300000000001, ParentIdList = new() { 1300000000001, 1300000000002 }, Code = "dashboard", Layer = 1, Urls = "/dashboard", Redirect = "", VuePath = "home", Icon = "el-icon-menu", Active = "", Color = "", Sort = 2, FullPage = false, Types = "menu", Api = new(0), CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },
            new SysMenu { Id = 1300000000013, TenantId = 0, Name = "租户资源", ParentId = 1300000000001, ParentIdList = new() { 1300000000001, 1300000000002 }, Code = "dashboard", Layer = 1, Urls = "/dashboard", Redirect = "", VuePath = "home", Icon = "el-icon-menu", Active = "", Color = "", Sort = 2, FullPage = false, Types = "menu", Api = new(0), CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },
            new SysMenu { Id = 1300000000014, TenantId = 0, Name = "租户权限", ParentId = 1300000000001, ParentIdList = new() { 1300000000001, 1300000000002 }, Code = "dashboard", Layer = 1, Urls = "/dashboard", Redirect = "", VuePath = "home", Icon = "el-icon-menu", Active = "", Color = "", Sort = 2, FullPage = false, Types = "menu", Api = new(0), CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },

            new SysMenu { Id = 1300000000101, TenantId = 0, Name = "设置", ParentId = 0, ParentIdList = new() { 1300000000001 }, Code = "home", Layer = 1, Urls = "/home", Redirect = "", VuePath = "", Icon = "el-icon-house", Active = "", Color = "", Sort = 1, FullPage = false, Types = "menu", Api = new(0), CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },


            new SysMenu { Id = 1300000000201, TenantId = 0, Name = "应用", ParentId = 0, ParentIdList = new() { 1300000000001 }, Code = "home", Layer = 1, Urls = "/home", Redirect = "", VuePath = "", Icon = "el-icon-house", Active = "", Color = "", Sort = 1, FullPage = false, Types = "menu", Api = new(0), CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },

        };
    }
}
